The Smart ComboBox Component > FSmartComboBoxClass.addItemAt(pos,label,data,persist)

 

FSmartComboBox.addItemAt(pos,label,data [,persist])

Availability

Macromedia Flash Player 6.

Usage

myCombo.addItemAt(pos,label,data,persist);

Parameters

pos

The index indicating where the item should be added.

label

The label to associate with the item.

data

The data to associate with the item.

persist

When this is set to true, the item will be stored across sessions. When this is set to false, it will not be stored. This parameter is optional, and defaults to false.

Returns

Nothing.

Description

Adds an item at the given index in the history of the ComboBox.

Example

The following example shows how to add an item to the beginning of the history. The item will be persistent and stored across sessions.

myCombo.addItemAt(0,"Item 1","1",true);

See also

FSmartComboBox.addItem